/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 涛
 * Date: 2023-09-21
 * Time: 21:48
 */
class MyArray {
    public Object[] array = new Object[10];
    public Object getPos(int pos) {
        return array[pos];
    }
    public void setPos(int pos, Object obj) {
        array[pos] = obj;
    }
}

public class Test3 {
    public static void main(String[] args) {
        MyArray myArray = new MyArray();
        myArray.setPos(0, "abc");
        System.out.println(myArray.getPos(0));
        myArray.setPos(1, 11);
        System.out.println(myArray.getPos(1));
        int i = (int)myArray.getPos(1);
        System.out.println(i);

    }
}
